package com.siwei.eqi.controller.sys;

import com.baomidou.mybatisplus.extension.api.R;
import com.siwei.eqi.service.sys.ResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/resource")
public class ResourceController {

    @Autowired
    private ResourceService resourceService;

    @GetMapping()
    public R getResourceList(String indexName) {
        return R.ok(resourceService.getResourceList(indexName));
    }


}

